home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12715 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: erinews.ericsson.se!usenet
  2. From: Bjorn Fahller <ebcbear@ebc.ericsson.se>
  3. Newsgroups: comp.lang.c++
  4. Subject: extending strstream
  5. Date: Thu, 21 Mar 1996 11:24:41 +0100
  6. Organization: Ericsson Business Networks AB
  7. Message-ID: <31512E69.18FE@ebc.ericsson.se>
  8. NNTP-Posting-Host: ebcw050.ebc.ericsson.se
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (X11; I; HP-UX A.09.05 9000/735)
  13.  
  14. I need to encapsulate a chunk of memory, with a fixed maximum
  15. size, that can be read from and written to. My idea is that
  16. extending the strstream class is a good way to do that, but
  17. my documentation on how is, at beast, weak.
  18.  
  19. I must be able to initiate memory objects with a pointer to
  20. the memory chunk, and the maximum allowed size, plus a size
  21. that is the actual part of the memory chunk that contains
  22. valid data right away, and can be read.
  23.  
  24. How do I go about to do this, or should I create a class of
  25. my own from scratch?
  26.    _
  27. /Bjorn.
  28. --
  29. Bjorn Fahller                  Tel: +46 8 4220898 / 
  30. NA/EBC/FNM/T                   -------------------            ^
  31. Ericsson Business Networks AB /                               |
  32. S-131 89 Stockholm/SWEDEN    / Clever quote goes right here --+
  33.